package org.hj.modules.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.hj.modules.system.entity.SysDataSource;

/**
 * 多数据源管理
 */
public interface SysDataSourceMapper extends BaseMapper<SysDataSource> {

    @Select("select count(*) from  ${table} ")
    int getTotal(@Param("table") String table);
}
